package information;

public class User {
	private int id;
	private String userName;
	private String password;
	private double money;
	private String telePhone;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String username) {
		this.userName = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public String getTelePhone() {
		return telePhone;
	}
	public void setTelePhone(String phone) {
		this.telePhone = phone;
	}
	//构建
	public User(String username, String password, double money, String phone) {
		this.userName = username;
		this.password = password;
		this.money = money;
		this.telePhone = phone;		
	}
	public User(String userName, double money) {
		this.userName = userName;
		this.money = money;
	}
	public User(int id,String username,  double money, String phone) {
		this.id=id;
		this.userName = username;
		this.money = money;
		this.telePhone = phone;		
	}
	public User() {
		// TODO 自动生成的构造函数存根
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", money=" + money + ", telePhone=" + telePhone + "]";
	}

	
	
}